package com.liu.community.server;/*
 *@Author:Liu Xing-zhi
 *Description:
 *Date:Crated in 16:12 2021/10/12
 */

import com.liu.community.dto.CommentDto;
import com.liu.community.pojor.Comment;
import com.liu.community.pojor.User;

import java.util.List;

public interface CommentService {

    void insert(Comment comment, User commentor);
    //
    List<CommentDto> queryCommentByQuestionIdAndType(Integer id);

    List<CommentDto>  queryQuestionCommentByQuestionIdAndType(Integer id);

    Comment queryCommentByCommentId(Integer id);

    List<CommentDto> queryCommentByBlogIdAndType(Integer id);

    List<CommentDto> queryBlogCommentByBlogAndType(Integer id);
}
